package com.gameGroups.ServiceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gameGroups.Dto.GiveLikeDto;
import com.gameGroups.Dto.WorksDto;
import com.gameGroups.Dto.WorksExtDto;
import com.gameGroups.Mapper.WorksAndArticleMapper;
import com.gameGroups.Service.WorksAndArticleService;
@Service
public class WorksAndArticleServiceImpl implements WorksAndArticleService {
   @Autowired
   private WorksAndArticleMapper worksAndArticleMapper;


public WorksDto queryWorks(String wid) {
	return worksAndArticleMapper.queryWorks(wid);
}

public List<WorksExtDto> queryWorksExtList(Map<String,Object> param) {
	return worksAndArticleMapper.queryWorksExtList(param);
}

public List<WorksDto> queryWorksListByGiveLike(Map<String, Object> param) {
	return worksAndArticleMapper.queryWorksListByGiveLike(param);
}

public List<WorksDto> queryWorksListByUpdate(Map<String, Object> param) {
	return worksAndArticleMapper.queryWorksListByUpdate(param);
}

public Integer focusWorks(String uid,String sid) {	
    return worksAndArticleMapper.focusWorks(uid,sid);
}

public List<GiveLikeDto> queryGiveLikeList(String wid) {
	return worksAndArticleMapper.queryGiveLikeList(wid);
}

public Integer queryWorksExtNum(String wid) {
	return worksAndArticleMapper.queryWorksExtNum(wid);
}

public Integer addBrowseNum(String wid) {
	return worksAndArticleMapper.addBrowseNum(wid);
}

public Integer updateWorks(int uid, String pName) {
	return worksAndArticleMapper.updateWorks(uid,pName);
}

public Integer updateWorksExt(int uid, String pName) {
	return worksAndArticleMapper.updateWorksExt(uid,pName);
}

}
